interface Todo {
  title: string;
  completed: boolean;
  description: string;
}

type MyOmit<T, K extends keyof T> = {
  // [P in keyof T as P extends K ? never : P]: T[P];
  // Exclue<P, K> === P extends K ? never: K, 排除P中的K
  [P in keyof T as Exclude<P, K>]: T[P];
};

type Test = MyOmit<Todo, "completed">;

export {};
